const path = require('path')
module.exports = {
  lintOnSave: true,

  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'less',
      patterns: [
        path.join(__dirname, '/src/style/variables.less')
      ]
    }
  },

  devServer: {
    host: 'www.corho.com',
    port: 8080,
    open: true
  },
  // 设置打包为相对路径
  publicPath: '',
  productionSourceMap: false
  // 这个是给webpack-dev-server开启可以IP和域名访问权限
  // chainWebpack: config => {
  //   config.devServer.disableHostCheck(true)
  // }
}
